
package com.uduew.sjd.ui.adapter;

import android.content.Context;

import androidx.recyclerview.widget.RecyclerView;

import com.uduew.sjd.R;
import com.uduew.sjd.api.ProductInfoApi;
import com.uduew.sjd.databinding.LayoutLoanListBinding;
import com.uduew.sjd.utils.DiffUtils;
import com.kunminx.binding_recyclerview.adapter.SimpleDataBindingAdapter;


public class LoanProductAdapter extends SimpleDataBindingAdapter<ProductInfoApi.ThoroughBean, LayoutLoanListBinding> {


    public LoanProductAdapter(Context context) {
        super(context, R.layout.layout_loan_list, DiffUtils.getInstance().getHomeProductItemCallback());
    }

    @Override
    protected void onBindItem(LayoutLoanListBinding binding, ProductInfoApi.ThoroughBean item, RecyclerView.ViewHolder holder) {
        binding.setList(item);
    }
}
